﻿<%@ Control Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:GridPanel ID="GridTourGuest" runat="server" Header="false" Border="false" TrackMouseOver="true"
    AutoExpandColumn="Birthday" StoreID="dsGuest" Height="400" Width="500" >
    <ColumnModel ID="ColumnModel2" runat="server">
        <Columns>
            <ext:Column ColumnID="FullName" DataIndex="FullName" Header="Full Name" Width="250" >
                <Editor>
                    <ext:TextField ID="txtFullName" runat="server" AllowBlank="true" />
                </Editor>
            </ext:Column>
            <ext:DateColumn ColumnID="Birthday" DataIndex="Birthday" Header="Birth Day" Format="dd/MM/yyyy" AutoDataBind="true" >
                <Editor>
                    <ext:DateField ID="txtBirthday" runat="server" AllowBlank="true" AutoDataBind="true" Format="dd/MM/yyyy"  />
                </Editor>
            </ext:DateColumn>
        </Columns>
    </ColumnModel>
    <SelectionModel>
        <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" />
    </SelectionModel>
    <BottomBar>
        <ext:PagingToolbar ID="PagingToolbar2" runat="server" PageSize="15" />
    </BottomBar>
    <Listeners>
        <Command Fn="commandHandler" />
        <BeforeEdit Handler="return !(e.field=='ID' && !e.record.newRecord);" />
    </Listeners>
    <LoadMask ShowMask="true" />
    <SaveMask ShowMask="true" />
</ext:GridPanel>
